-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bump minimum version to Go 1.17 #3849
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this needs a bug warning about breaking old versions in the CHANGELOG file
@lucor Do you know why the license check workflow is suddenly failing? |
Sorry for the force push. I had the wrong settings on my laptop, resulting in the commit not being marked as "verified". |
It looks like the output points at the |
As @andydotxyz said missed LICENSE file. @Jacalz if your PR won't merged for any reason as workaround we'd exclude the check for that repo with the exclude flag. |
Thanks @lucor. I have opened a PR upstream but I think it would be good to exclude the project from the check for now. |
I managed to exclude the problematic repository but we are now running into issues with dependencies that are dual licensed with |
Never mind. It is smart enough to understand that dual licensing is fine (it was still listed as not allowed locally so I thought it would kill the workflow). Nicely done @lucor :) |
I guess these test hangs open the question - when do we update our branch rules to 1.17? |
I think the best solution is to turn off the requirement on the Go 1.14 tests and just be extra careful to check them before merging anything into the release or master branches. As long as we do not enable a requirement on the Go 1.17 checks, we can still have the Go 1.14 tests running on the other branches without further changes there. We might be able to rename the workflows in the future and avoid running into the same issue next time we update the minimum. |
Yeah if we could crack the naming that would rock! |
I have now looked at improving the names but I don't see any way to get better naming without naming all the tests to the same name (which would be confusing) or to give them a better name format (but with the same problem occurring) using https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#run-name. What I had in mind was to call the Go 1.17 tests something like How should we proceed with this? I would still vote for turning off the requirement on Go 1.14 and not turn on the requirement for Go 1.17 tests once v2.4.0 go live in June. FYI: I had to rebase to fix a conflict in the changelog and I also fixed the spelling in one of the commit messages, hence the force push. |
Ah well, good to try. I have now turned off the requirement for 1.14 tests to pass before merge is allowed. |
Indeed. Sounds good. I will keep an eye out for it :) |
Description:
This updates the version in
go.mod
to Go 1.17 as it enables sparse module indexes and also allows us to upgradegolang.org/x
packages to later versions. Workflows have also been updated to test with Go 1.17 as a base.The PR is intentionally small. Larger code changes can be done in the future.
Checklist:
Where applicable: